package com.bonc.situation.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.bonc.situation.vo.TestBean;
import com.bonc.situation.vo.TestHBaseBean;


@FeignClient(name="bonc-micro-gate",fallback=DataClientFallBack.class)
public interface DataClient {
	@RequestMapping(value="/data//testId/{id}",method = RequestMethod.GET)
	TestBean getDataById(@PathVariable("id") String id);
	@GetMapping(value="/hbase/getList")
	List<TestHBaseBean> getList() throws Exception;
}